import Vue from 'vue'
import App from './App'
import  './assets/reset.css'
//路由导入
import router from "./router"
//状态集导入
import store from "./store/index"
//引入ElementUI依赖
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
//引入异步请求依赖
import axios from "axios";
import VueAxios from 'vue-axios'



Vue.config.productionTip = false
//加载ElementUI
Vue.use(ElementUI);
//加载异步请求
Vue.use(VueAxios, axios)




if (process.env.NODE_ENV === 'development') require('../src/api/mock')

new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
